package ${config.injectionConfig.map.parent}.entity.emeus;

<#if emeus>
import com.baomidou.mybatisplus.core.enums.IEnum;
</#if>

import ${config.injectionConfig.map.superEmeusClassPackage};
import org.springframework.stereotype.Component;

@Component
public class ${entity}Emeus extends LogicBaseEmeus{

	private static final long serialVersionUID = 1L;
	
<#list fields as field>
	/**${field.comment}*/
	public static final String ${field.propertyName} ="${field.name}";      
</#list>
<#list fields as field>
<#if field.fieldDesc??>
	/**${field.comment}*/
	public enum ${field.upperPropertyName} implements IEnum<${field.propertyType}>{
	
<#list field.fieldDesc as desc>
		/**${field.comment}*/
		${desc.pinyin}(<#if field.propertyType="String">"${desc.key}"<#else>${desc.key}</#if>, "${desc.desc}")<#if desc_has_next>,<#else>;</#if>
</#list>
	
		/**键值*/
	    private final ${field.propertyType} key;
	    /**建描述*/
	    private final String desc;
	    
	    ${field.upperPropertyName}(final ${field.propertyType} key, final String desc) {this.key = key;this.desc = desc;}

		@Override
		public String toString() {return desc; }
		
		@Override
		public ${field.propertyType}  getValue(){return this.key;}

	}
</#if>
</#list>
	
}
